package com.ruifu.pls.entity;
import java.math.BigDecimal;


/**
 * ********************************************************
 * * @desc  ：
 * * @author  ${user}
 * * @date    ${date}
 * * @version v1.0
 * * ${tags}
 * *******************************************************
 */
public class DocOrderDetailsId implements java.io.Serializable {
    private String orderno;
    private BigDecimal orderlineno;

    // Constructors

    /** default constructor */
    public DocOrderDetailsId() {
    }

    /** full constructor */
    public DocOrderDetailsId(String orderno, BigDecimal orderlineno) {
        this.orderno = orderno;
        this.orderlineno = orderlineno;
    }

    // Property accessors

    //@Column(name = "ORDERNO", nullable = false, length = 20)
    public String getOrderno() {
        return this.orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

   // @Column(name = "ORDERLINENO", nullable = false, precision = 22, scale = 0)
    public BigDecimal getOrderlineno() {
        return this.orderlineno;
    }

    public void setOrderlineno(BigDecimal orderlineno) {
        this.orderlineno = orderlineno;
    }

    public boolean equals(Object other) {
        if ((this == other))
            return true;
        if ((other == null))
            return false;
        if (!(other instanceof DocOrderDetailsId))
            return false;
        DocOrderDetailsId castOther = (DocOrderDetailsId) other;

        return ((this.getOrderno() == castOther.getOrderno()) || (this
                .getOrderno() != null && castOther.getOrderno() != null && this
                .getOrderno().equals(castOther.getOrderno())))
                && ((this.getOrderlineno() == castOther.getOrderlineno()) || (this
                .getOrderlineno() != null
                && castOther.getOrderlineno() != null && this
                .getOrderlineno().equals(castOther.getOrderlineno())));
    }

    public int hashCode() {
        int result = 17;

        result = 37 * result
                + (getOrderno() == null ? 0 : this.getOrderno().hashCode());
        result = 37
                * result
                + (getOrderlineno() == null ? 0 : this.getOrderlineno()
                .hashCode());
        return result;
    }
}
